import Vue from 'vue'
import svgIcon from '@/assets/icons/svgIcon/index.vue'

Vue.component('SvgIcon', svgIcon) //挂载全局组件

//下面这个是导入svgIcon/svg下的所有svg文件
const requireAll = requireContext => requireContext.keys().map(requireContext)
const req = require.context('../icons', false, /\.svg$/)
requireAll(req)
